package edu.sctu.practice.class02.hujie.cgs.practice02.test18;

/**
 * Created by hj on 2015/10/26.
 */
public class Car extends Auto {
    public boolean airConditioner = true;//是否有空调
    public boolean CD = true;

    //重载
    public void upspeed() {
        System.out.println("他加速很快");
    }

    public void downspeed() {
        System.out.println("他减速很快");
    }

    public static void main(String[] args) {
        Car car = new Car();
        System.out.println("car 的颜色：" + car.color + "\n" + "car 的重量：" + car.weight + "吨" + "\n" + "car 的轮子数："
                + car.tyre + "\n" + "car 的空调：" + car.airConditioner + "\n" + "car 的cd：" + car.CD + "\n" + "car 的速度：" + car.speed);
        car.upspeed();
        car.downspeed();
        car.stop();
    }
}
